package com.wzdigit.wms.raw.controller;

import com.wzdigit.framework.model.response.ErrorEntity;
import com.wzdigit.wms.basic.client.Pager;
import com.wzdigit.wms.basic.client.PagerInfo;
import com.wzdigit.wms.basic.domain.inventory.Goods;
import com.wzdigit.wms.basic.enums.GoodsStatusEnum;
import com.wzdigit.wms.basic.mapper.core.inventory.GoodsMapper;
import com.wzdigit.wms.raw.client.request.trsn.report.asntrsn.AsnTrsnRequest;
import com.wzdigit.wms.raw.client.response.trsn.report.asntrsn.AsnTrsnResponse;
import com.wzdigit.wms.raw.constant.RawWareConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;

/**
 * Created by zyf on 2021/8/10 14:24
 */
@RestController
@Api(tags = "测试测试测试")
@RequestMapping(value = RawWareConstant.API_VERSION)
public class TestController {
    @Autowired
    private GoodsMapper goodsMapper;

    @ApiOperation(value = "testetse（分页）", notes = "testetse（分页）")
    @ApiResponses({@ApiResponse(code = 500, message = "系统出现异常", response = ErrorEntity.class)})
    @RequestMapping(value =  "/testetse", method = RequestMethod.GET)
    public void testetse(
            HttpServletRequest servletRequest, HttpServletResponse servletResponse) {
        Goods goodsUpdate = new Goods();
        goodsUpdate.setGoodsId(43);
        goodsUpdate.setModifyTime(new Date());
        goodsUpdate.setLocId(null);
        int rowGoods = goodsMapper.updateById(goodsUpdate);
        System.out.println("**************"+rowGoods);
    }

}
